package com.jymj.service;

import com.jymj.entity.KeyValueEntity;
import com.jymj.entity.huji.ZhaiEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by ljj on 2017/4/6.
 */
public interface ZhaiService {

    List<ZhaiEntity> getZhaiEntity(Integer objectid,Integer household);

    List<ZhaiEntity> getZhaiByCunName(String cunName);

    //1
    Map getHuQuery(Integer pageSize, Integer currPage, ZhaiEntity zhai, List code);

    /**
     * 1
     * app 查询 年龄 就业 户别 皆存在
     *
     * @param zhai
     * @return
     */
    List<KeyValueEntity> queryByAge(ZhaiEntity zhai, List code);

    //1
    List<KeyValueEntity> queryBysex(ZhaiEntity zhai, List code);

    //1
    List<KeyValueEntity> queryByEmp(ZhaiEntity zhai, List code);

    //1
    List<KeyValueEntity> queryByHuType(ZhaiEntity zhai, List code);

    //1
    List<KeyValueEntity> getse0ByFrame(String points, String code);

    //1
    List<ZhaiEntity> getZhaiList(Map map);

    //1
    List<KeyValueEntity> queryByEmp(String points, String code);

    //1
    List<KeyValueEntity> queryByHuType(String points, String code);

    //1
    List<KeyValueEntity> getse1ByFrame(String points, String code);

    //1
    List<KeyValueEntity> getse2ByFrame(String points, String code);

    //1
    Integer getZhaiListCount(String points, String code);

    //根据objectid 获取zhai
    List<ZhaiEntity> getHujiByObid(Integer objectid);

    //框选 导出使用
    List<ZhaiEntity> getZhaiListExcel(Map map1);

    void update(ZhaiEntity zhaiEntity);

    void save(ZhaiEntity zhaiEntity);

    ZhaiEntity getzhai(Integer objectid,Integer household);

    void deleteHuji(Long[] ids);

    void updateHu(Integer ylId, Integer household);

    List<ZhaiEntity> getHuji(Integer ylId);
}
